package routers

import (
	"OnlineRetailers/controllers/admin/Classification"
	"OnlineRetailers/controllers/admin/Freight"
	"OnlineRetailers/controllers/admin/activity"
	"OnlineRetailers/controllers/admin/adminUser"
	"OnlineRetailers/controllers/admin/coupon"
	"OnlineRetailers/controllers/admin/img"
	"OnlineRetailers/controllers/admin/order"
	"OnlineRetailers/controllers/admin/product"
	SmallClass "OnlineRetailers/controllers/admin/smallClass"
	"OnlineRetailers/controllers/express"
	"OnlineRetailers/controllers/login"
	"OnlineRetailers/controllers/pay"
	CLASS "OnlineRetailers/controllers/user/Class"
	"OnlineRetailers/controllers/user/HomePage"
	"OnlineRetailers/controllers/user/Score"
	"OnlineRetailers/controllers/user/address"
	coupon2 "OnlineRetailers/controllers/user/coupon"
	"OnlineRetailers/controllers/user/myShoppingCart"
	order2 "OnlineRetailers/controllers/user/order"
	product2 "OnlineRetailers/controllers/user/product"
	"github.com/astaxie/beego"
)

func init() {
	//img
	beego.Router("/post_img", &img.PostIMG{}, "post:PostIMG")
	beego.Router("/delete_img", &img.DeleteIMG{}, "delete:DeleteIMG")
	//beego.Router("/", &login.LoginVerCode{})
	beego.Router("/admin_login", &login.AdminLogin{}, "post:AdminLogin")
	beego.Router("/get_session", &login.GetSession{}, "get:GetSession")
	beego.Router("/get_captcha", &login.GetCaptcha{}, "get:GetCaptcha")
	//
	beego.Router("/get_admin_user", &adminUser.GetAdminUser{}, "get:GetAdminUser")
	beego.Router("/delete_admin_user", &adminUser.DeleteAdminUser{}, "delete:DeleteAdminUser")
	beego.Router("/post_admin_user", &adminUser.PostAdminUser{}, "post:PostAdminUser")
	beego.Router("/update_admin_user", &adminUser.UpdateAdminUser{}, "put:UpdateAdminUser")
	beego.Router("/search_admin_user", &adminUser.SearchAdminUser{}, "get:SearchAdminUser")
	//
	//beego.Router("/*", &OPTIONS.OPTIONS{}, "OPTIONS:OPTIONS")
	beego.Router("/get_activity", &activity.GetActivity{}, "get:GetActivity")
	beego.Router("/delete_activity", &activity.DeleteActivity{}, "delete:DeleteActivity")
	beego.Router("/post_activity", &activity.PostActivity{}, "post:PostActivity")
	beego.Router("/update_activity", &activity.UpdateActivity{}, "put:UpdateActivity")
	beego.Router("/search_activity", &activity.SearchActivity{}, "get:SearchActivity")
	//
	beego.Router("/get_classification", &Classification.GetClassification{}, "get:GetClassification")
	beego.Router("/delete_classification", &Classification.DeleteClassification{}, "delete:DeleteClassification")
	beego.Router("/post_classification", &Classification.PostClassification{}, "post:PostClassification")
	beego.Router("/update_classification", &Classification.UpdateClassification{}, "put:UpdateClassification")
	beego.Router("/search_classification", &Classification.SearchClassification{}, "get:SearchClassification")
	//
	beego.Router("/get_coupon", &coupon.GetCoupon{}, "get:GetCoupon")
	beego.Router("/delete_coupon", &coupon.DeleteCoupon{}, "delete:DeleteCoupon")
	beego.Router("/post_coupon", &coupon.PostCoupon{}, "post:PostCoupon")
	beego.Router("/update_coupon", &coupon.UpdateCoupon{}, "put:UpdateCoupon")
	beego.Router("/search_coupon", &coupon.SearChcoupon{}, "get:SearChcoupon")

	//
	beego.Router("/get_product", &product.GetProduct{}, "get:GetProduct")
	beego.Router("/get_product_detailed", &product.GetProductDetailed{}, "get:GetProductDetailed")
	beego.Router("/delete_product", &product.DeleteProductDetailed{}, "delete:DeleteProductDetailed")
	beego.Router("/post_product", &product.PostProductDetailed{}, "post:PostProductDetailed")
	beego.Router("/update_product", &product.UpdateProductDetailed{}, "put:UpdateProductDetailed")
	beego.Router("/search_product", &product.SearchProduct{}, "get:SearchProduct")
	//
	beego.Router("/get_order", &order.GetOrder{}, "get:GetOrder")
	beego.Router("/delete_order", &order.DeleteOrder{}, "delete:DeleteOrder")
	beego.Router("/post_order", &order.PostOrder{}, "post:PostOrder")
	beego.Router("/update_order", &order.UpdateOrder{}, "put:UpdateOrder")
	beego.Router("/search_order", &order.SearchOrder{}, "get:SearchOrder")
	beego.Router("/get_my_order_num", &order2.GetOrderNum{}, "get:GetOrderNum")
	//
	beego.Router("/get_address", &address.GetAddress{}, "get:GetAddress")
	beego.Router("/delete_address", &address.DeleteAddress{}, "delete:DeleteAddress")
	beego.Router("/post_address", &address.PostAddress{}, "post:PostAddress")
	beego.Router("/update_address", &address.UpdateAddress{}, "put:UpdateAddress")
	beego.Router("/get_address_by_id", &address.GetAddressById{}, "get:GetAddressById")

	//
	beego.Router("/get_shoppingCart", &myShoppingCart.GetMyShoppingCart{}, "get:GetMyShoppingCart")
	beego.Router("/delete_shoppingCart", &myShoppingCart.DeleteMyShoppingCart{}, "delete:DeleteMyShoppingCart")
	beego.Router("/post_shoppingCart", &myShoppingCart.PostMyShoppingCart{}, "post:PostMyShoppingCart")
	beego.Router("/update_shoppingCart", &myShoppingCart.UpdateMyShoppingCart{}, "put:UpdateMyShoppingCart")
	//
	beego.Router("/get_homePages", &HomePage.GetHomePage{}, "get:GetHomePage")
	//
	beego.Router("/get_productByAct", &product2.GetProductByActivity{}, "get:GetProductByActivity")
	beego.Router("/get_productByCla", &product2.GetProductByClass{}, "get:GetProductByClass")
	beego.Router("/get_productById", &product2.GetProductById{}, "get:GetProductById")
	//login
	beego.Router("/wx_login", &login.WXLogin{}, "get:WXLogin")
	//
	beego.Router("/get_score_mess", &Score.GetScoreMess{}, "get:GetScoreMess")
	//
	beego.Router("/get_my_coupon", &coupon2.GetCoupon{}, "get:GetCoupon")
	beego.Router("/get_my_coupon_num", &coupon2.GetCouponNum{}, "get:GetCouponNum")
	beego.Router("/get_all_coupon", &coupon2.GetAllCoupon{}, "get:GetAllCoupon")
	beego.Router("/post_my_coupon", &coupon2.PostAddress{}, "post:PostAddress")
	beego.Router("/get_coupon_by_id", &coupon2.GetCouponById{}, "get:GetCouponById")
	//
	beego.Router("/post_pay", &pay.PostPay{}, "post:PostPay")
	//beego.Router("/check_pay", &pay.CheckPay{}, "get:CheckPay")
	//
	beego.Router("/update_freight", &Freight.UpdateFreight{}, "put:UpdateFreight")
	beego.Router("/get_freight", &Freight.GetFreight{}, "get:GetFreight")
	//
	beego.Router("/get_small_class", &SmallClass.GetSmallClass{}, "get:GetSmallClass")
	beego.Router("/delete_small_class", &SmallClass.DeleteSmallClass{}, "delete:DeleteSmallClass")
	beego.Router("/post_small_class", &SmallClass.PostSmallClass{}, "post:PostSmallClass")
	beego.Router("/update_small_class", &SmallClass.UpdateSmallClass{}, "put:UpdateSmallClass")
	beego.Router("/search_small_class", &SmallClass.SearchSmallClass{}, "get:SearchSmallClass")
	//
	beego.Router("/get_small_class_user", &CLASS.GetSmallClass{}, "get:GetSmallClass")
	//
	beego.Router("/get_express", &express.Get{}, "get:Get")
	beego.Router("/get_express_id", &express.GetExpress{}, "get:GetExpress")

}
